Java 9 Modularity Revealed by Alexandru Jecan

Java 9 Modularity Revealed by Alexandru Jecan

Author:Alexandru Jecan
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


import com.apress.moduleA.interfaces.ServiceExample;

public class ServiceExampleImplementation1 implements ServiceExample {

public ServiceExampleImplementation() {

}

@Override

public String printHelloWorld() {

return "Hello World from ServiceExampleImplementation1";

}

}

Listing 6-3.The Implementation Class of Interface ServiceExample from Module com.apress.providerA

In Listing 6-4 you see the module descriptor of module com.apress.providerA.

module com.apress.providerA {

requires com.apress.moduleA;

provides com.apress.moduleA.interfaces.ServiceExample with com.apress.providerA.ServiceExampleImplementation1;

}

Listing 6-4.The Module Descriptor of Module com.apress.providerA



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.